package com.hlingsoft.kkh.entity;

import com.hlingsoft.kkh.constant.ApplicationConstant;

import java.util.Date;

/**
 * Created by selbylei on 2015/1/14.
 */
public class ApplicationHistory {
    private long id;
    private long appUserId;
    private long merchantId;
    private long jobId;
    private long resumeId;
    private Date createTime;
    private long isDelete;
    private ApplicationConstant.Status status;
    private Date updateTime;
    private Job job;
    private MerchantInfo merchant;
    private Resume resume;

    public String getStatusStr(){
        if (this.status.equals(ApplicationConstant.Status.NEW)) {
            return "待通知";
        } else if (this.status.equals(ApplicationConstant.Status.DONE)) {
            return "待评分";
        } else if (this.status.equals(ApplicationConstant.Status.NOTICE)) {
            return "待回复";
        }
        return "";
    }

    public Resume getResume() {
        return resume;
    }

    public void setResume(Resume resume) {
        this.resume = resume;
    }

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    public MerchantInfo getMerchant() {
        return merchant;
    }

    public void setMerchant(MerchantInfo merchant) {
        this.merchant = merchant;
    }

    public long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(long merchantId) {
        this.merchantId = merchantId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(long appUserId) {
        this.appUserId = appUserId;
    }

    public long getJobId() {
        return jobId;
    }

    public void setJobId(long jobId) {
        this.jobId = jobId;
    }

    public long getResumeId() {
        return resumeId;
    }

    public void setResumeId(long resumeId) {
        this.resumeId = resumeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public long getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(long isDelete) {
        this.isDelete = isDelete;
    }

    public ApplicationConstant.Status getStatus() {
        return status;
    }

    public void setStatus(ApplicationConstant.Status status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
